#include "Cell.h"

Cell::Cell(Game_object *content) : game_object(content) {}

Cell::~Cell(void) {
}

void Cell::render_contents(GLenum mode) {
	if (this->has_pawn()) {
		game_object->render(mode);
	}
}

bool Cell::has_pawn() {
	return game_object != nullptr;
}

std::shared_ptr<Game_object> Cell::get_game_object()
{
	return game_object;
}

void Cell::set_game_object(std::shared_ptr<Game_object> game_o)
{
	game_object = game_o;
}

